<%@ page language="java"  pageEncoding="utf-8"%>
<%@ page import="com.ejoysoft.wlanyz.business.Ac,java.util.Iterator,java.util.Set,java.util.ArrayList,java.util.Map,com.ejoysoft.wlanyz.system.Maintainer,com.ejoysoft.common.Constants,com.ejoysoft.common.exception.NoRightException" %>
<%@page import="java.util.Vector"%>
<%@ include file="../include/jsp/head.jsp"%>


<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Maintainer obj1=new Maintainer(globa);
%> 

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script src="../scripts/jsframework.js"></script>
<script language="JavaScript" src="../js/jquery-1.4.1.min.js"></script>
<script src="../scripts/jquery-1.4.1.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
body {
	background-color: #f2f8ff;
}
.sel1{ width:160px;}
.STYLE1 {color: #FF0000}
a{ font-size:12px; color:#214263; text-decoration:none; }
a:hover{ font-size:12px; color:#ffffff; background-color:#ff9900; text-decoration:none;display:block;} 
</style>
<script src="../include/js/chkFrm.js"></script>
<script language="javascript">

    function chkFrm() {  
    if(trim(frm.strMainName.value)=="") {
            alert("请输入姓名！！！")
            frm.strMainName.focus();
            return false;
        }  
        if(trim(frm.strMainMobile.value)==""){
        alert("请输入手机号！！！")
            frm.strMainMobile.focus();
            return false;
        }
        else if(trim(frm.strMainMobile.value).match("1[0-9]{10}$"))
        {
        }
        else
        {
        	alert("请输入正确的手机号！");
        	frm.strMainMobile.focus();
        	return false;
        }    
         
  	frm.submit();         
    }




</script>
</head>

<body>

<form name="frm" method=post action="maintainer_act.jsp"  >

<input type="hidden" name="<%=Constants.ACTION_TYPE%>" value="<%=Constants.ADD_STR%>"></input>

<div class="lf_list">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
    <td height="30"><img src="../images/ri_list.jpg" width="14" height="14" align="bottom" />&nbsp;<font size="2px">您现在所在的位置：</font><font color="#0e7cc9" size="2px">系统管理 </font><font size="2px">&gt; 代维人员管理</font><font size="2px">&gt; 添加代维人员 </font></td>
  </tr>
</table>
<table id="tb" width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr> <td class="listtit1"align="left">&nbsp; &nbsp;<font size="2px"> 添加代维人员</font></td>
</tr>
 
  <tr>
    <td bgcolor="#FFFFFF" class="listd" style="border-left:1px solid #dddddd;border-right:1px solid #dddddd;">&nbsp;
   
    <table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">        
     <tr>
       <td >
       <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:10px 0px 2px 0px;">
       <tr>
	     <td width="4%" align="left" >
	     </td>

		</tr>
       </table></td></tr>

          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td width="30%" height="30" align="right" class="left_txt2"><font size="2px">姓名：</font></td>
                <td width="3%">&nbsp;</td>
                <td width="40%" align="left"><input type="text"  class="ipt" name="strMainName" id="strMainName"/>
                </td> 
            </tr>
            <tr>
             <td width="30%" height="30" align="right" class="left_txt2" ><font size="2px">性别 ：</font></td>
             <td width="3%">&nbsp;</td>
            <td width="40%" height="30">
            
            <select id="strMainSex" name="strMainSex"   style="width:215px"  class="input_box"  >
            <option value=''>- - - - -请选择- - - - -</option>
              <%
                  //从全局变量中读取参数类型
                  String[] testTypes = {"男","女"};
                  for (int i = 0; i < testTypes.length; i++) {
              %>
                <option value="<%=testTypes[i]%>"><%=testTypes[i]%></option>
              <%
                  }
              %>                
         </select></td>
         </tr>
         <tr>
               <td width="30%" height="30" align="right" class="left_txt2"><font size="2px">地市：</font></td>
                <td width="3%">&nbsp;</td>
                <td width="40%" align="left"><input type="text"  class="ipt" name="strMainAddr" id="strMainAddr"/>
                </td> 
            </tr>
         
         <tr>
               <td width="30%" height="30" align="right" class="left_txt2"><font size="2px">手机号：</font></td>
                <td width="3%">&nbsp;</td>
                <td width="40%" align="left"><input type="text"  class="ipt" name="strMainMobile" id="strMainMobile"/>
                </td> 
            </tr>
         
         <tr>
               <td width="30%" height="30" align="right" class="left_txt2"><font size="2px">身份证：</font></td>
                <td width="3%">&nbsp;</td>
                <td width="40%" align="left"><input type="text"  class="ipt" name="strMainIdnum" id="strMainIdnum"/>
                </td> 
            </tr>
         
         <tr>
               <td width="30%" height="30" align="right" class="left_txt2"><font size="2px">电话号码：</font></td>
                <td width="3%">&nbsp;</td>
                <td width="40%" align="left"><input type="text"  class="ipt" name="strMainTel" id="strMainTel"/>
                </td> 
            </tr>
         
         <tr>
               <td width="30%" height="30" align="right" class="left_txt2"><font size="2px">职务：</font></td>
                <td width="3%">&nbsp;</td>
                <td width="40%" align="left"><input type="text"  class="ipt" name="strMainPosition" id="strMainPosition"/>
                </td> 
            </tr>
         
            <tr>
              <td height="30" colspan="3">&nbsp;</td>
            </tr>
            </table>
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
               <td width="3%" >&nbsp; <br></td>
              <td width="40%" height="20" align="right"> <input name="B1" type="button"   value="确  定" onclick="chkFrm()"  class="ipt2" /></td>
               <td width="3%" >&nbsp; <br></td>
               <td width="6%" height="20"><input  name="B12" type="reset"  value="取 消" class="ipt2" /></td>
                <td width="3%" >&nbsp; <br></td>
               <td width = "6%"><input type="button"  onclick="window.location.href='maintainer_list.jsp';" value="返 回" class="ipt2" style="cursor:hand"/></td>
               
               <td height="30" class="left_txt2">&nbsp;</td>               
            </tr> 
            </table>
            </td>
          </tr>
        </table>
  
</td>
  </tr>
 
</table>
 </div>
<p><br />
</p>
    </form>
 
</body>
</html>
<%@ include file="../include/jsp/footer.jsp"%>
